﻿set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO


If exists(select 1 from sysobjects where xtype = 'P' and name = 'Orden_Save')
Begin
   Drop proc Orden_Save
End

GO

CREATE     Proc [dbo].[Orden_Save]
	(@Emp_Id smallint,
	 @Orden_Id int,
	 @Fec_Inicio datetime,
	 @Fec_Final datetime)
AS
Begin
	Set nocount on

	Update Orden
	Set	Fec_Inicio = @Fec_Inicio,
		Fec_Final = @Fec_Final
	Where Emp_Id = @Emp_Id
	  and Orden_Id = @Orden_Id
	
	Set nocount on
End
 